TreePrinter

visit all the nodes and get information about each

Constructors

this
this(string source_code)

create a TreePrinter using the source code

Members

Functions

enter_node
bool enter_node(TreeCursor* cursor)

A function that gets the information about a node

leave_node
void leave_node(TreeCursor* cursor)

A function that is called after all the children nodes are visited

Variables

tree_string
String tree_string;

the information about the tree as a string

Inherited Members

From TreeVisitor

enter_node
bool enter_node(TreeCursor* cursor)

A function that is called before the children of a node are visited If this function returns false the visiting will of the children will be skipped.

leave_node
void leave_node(TreeCursor* cursor)

A function that is called after all the children nodes are visited

Meta